package ch6.ex23;

import static ch6.print.Print.*;

class Insect{
	private int i = 9;
	
	protected int j;
	Insect(){
		println("i - " + i + ", j - " + j);
		j = 39;
	}
	
	private static int x1 = printInt("static Insect.x1 initialized.");
	
	public static int printInt(String s){
		println(s);
		return 47;
	}
}

public class Beetle extends Insect {
	private int k = printInt("Beetle.k initialized.");
	
	public Beetle(){
		println("k = " + k);
		println("j = " + j);
	}
	private static int x2 = printInt("static Beetle.x2 initialized.");
	

	
	public static void main(String... args){
		println("Beetle constructor");
		Beetle b = new Beetle();
	}
}
